From: SymphonySimper <164710-SymphonySimper@users.noreply.gitlab.gnome.org> Date: Sat, 22 Nov 2025 13:01:05 +0000 (+0530) Subject: messageList: Check if Message is expanded X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~66^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=16aa7eb930ec171e7518e665b5a4f8ac22bfe19c;p=gnome-shell.git messageList: Check if Message is expanded Check if Message is expanded in expand method, to prevent rerunning the expand animation when it's already expanded Part-of: (cherry picked from commit 2f08a95b1efdef83a48e3d261937469070967d0a) --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index dfcc69d81..169f8900d 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -619,6 +619,9 @@ export const Message = GObject.registerClass({ } expand(animate) { + if (this.expanded) + return; + this.expanded = true; this._actionBin.visible = !!this._actionBin.child;